package com.heima.wemedia.fegin;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.wemedia.mapper.WmUserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/api")
public class InserWmUser {
    @Autowired
    private WmUserMapper wmUserMapper;
    @PostMapping("/insertwmuser")
    public ResponseResult inserwmtuser(WmUser wmUser){
        wmUserMapper.insert(wmUser);
        return ResponseResult.okResult("保存成功");
    }
}